package com.zhiyi.coco.dao;

import com.zhiyi.coco.entity.Food;
import com.zhiyi.coco.entity.FoodInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FoodInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FoodInfo record);

    int insertSelective(FoodInfo record);

    FoodInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FoodInfo record);

    int updateByPrimaryKey(FoodInfo record);

    List<FoodInfo> getAll(@Param("typeId") Integer typeId);

    List<FoodInfo> getAllNoParam();

    FoodInfo getInfoById(@Param("id") Integer id);

    Integer updateimgbyid(@Param("id") Integer id);

    FoodInfo selectFid(@Param("name") String name);

    Integer updateFid(@Param("name") String name,@Param("re") Integer re);
}